package com.uls.czj.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uls.common.annotation.Excel;
import com.uls.common.core.domain.BaseEntity;

/**
 * 周转公寓管理对象 czj_temporaryapartment
 * 
 * @author czj
 * @date 2024-11-10
 */
public class CzjTemporaryapartment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公寓id */
    private Long apartmentid;

    /** 楼宇id */
    @Excel(name = "楼宇id")
    private Long buildingid;

    /** 公寓类型，值: 单间, 一室一厅, 两室一厅, 其他 */
    @Excel(name = "公寓类型，值: 单间, 一室一厅, 两室一厅, 其他")
    private String apartmenttype;

    /** 面积（平方米） */
    @Excel(name = "面积", readConverterExp = "平=方米")
    private BigDecimal area;

    /** 租住状态，值: 空闲, 租用中 */
    @Excel(name = "租住状态，值: 空闲, 租用中")
    private String rentalstatus;

    /** 租户id */
    @Excel(name = "租户id")
    private Long tenantname;

    /** 租户联系方式 */
    @Excel(name = "租户联系方式")
    private String tenantcontact;

    /** 合同到期日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同到期日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contractenddate;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdby;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdtime;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updatedby;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedtime;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deletedby;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deletedtime;

    @Excel(name = "楼宇名称")
    private  String building;

    public String getBuilding() {
        return building;
    }

    public void setBuilding(String building) {
        this.building = building;
    }

    public void setApartmentid(Long apartmentid)
    {
        this.apartmentid = apartmentid;
    }

    public Long getApartmentid() 
    {
        return apartmentid;
    }
    public void setBuildingid(Long buildingid) 
    {
        this.buildingid = buildingid;
    }

    public Long getBuildingid() 
    {
        return buildingid;
    }
    public void setApartmenttype(String apartmenttype) 
    {
        this.apartmenttype = apartmenttype;
    }

    public String getApartmenttype() 
    {
        return apartmenttype;
    }
    public void setArea(BigDecimal area) 
    {
        this.area = area;
    }

    public BigDecimal getArea() 
    {
        return area;
    }
    public void setRentalstatus(String rentalstatus) 
    {
        this.rentalstatus = rentalstatus;
    }

    public String getRentalstatus() 
    {
        return rentalstatus;
    }
    public void setTenantname(Long tenantname) 
    {
        this.tenantname = tenantname;
    }

    public Long getTenantname() 
    {
        return tenantname;
    }
    public void setTenantcontact(String tenantcontact) 
    {
        this.tenantcontact = tenantcontact;
    }

    public String getTenantcontact() 
    {
        return tenantcontact;
    }
    public void setContractenddate(Date contractenddate) 
    {
        this.contractenddate = contractenddate;
    }

    public Date getContractenddate() 
    {
        return contractenddate;
    }
    public void setCreatedby(String createdby) 
    {
        this.createdby = createdby;
    }

    public String getCreatedby() 
    {
        return createdby;
    }
    public void setCreatedtime(Date createdtime) 
    {
        this.createdtime = createdtime;
    }

    public Date getCreatedtime() 
    {
        return createdtime;
    }
    public void setUpdatedby(String updatedby) 
    {
        this.updatedby = updatedby;
    }

    public String getUpdatedby() 
    {
        return updatedby;
    }
    public void setUpdatedtime(Date updatedtime) 
    {
        this.updatedtime = updatedtime;
    }

    public Date getUpdatedtime() 
    {
        return updatedtime;
    }
    public void setDeletedby(String deletedby) 
    {
        this.deletedby = deletedby;
    }

    public String getDeletedby() 
    {
        return deletedby;
    }
    public void setDeletedtime(Date deletedtime) 
    {
        this.deletedtime = deletedtime;
    }

    public Date getDeletedtime() 
    {
        return deletedtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("apartmentid", getApartmentid())
            .append("buildingid", getBuildingid())
            .append("apartmenttype", getApartmenttype())
            .append("area", getArea())
            .append("rentalstatus", getRentalstatus())
            .append("tenantname", getTenantname())
            .append("tenantcontact", getTenantcontact())
            .append("contractenddate", getContractenddate())
            .append("createdby", getCreatedby())
            .append("createdtime", getCreatedtime())
            .append("updatedby", getUpdatedby())
            .append("updatedtime", getUpdatedtime())
            .append("deletedby", getDeletedby())
            .append("deletedtime", getDeletedtime())
            .toString();
    }
}
